package com.skywolf.chem.live.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skywolf.chem.live.entity.Video;
import com.skywolf.chem.live.param.VideoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 视频信息表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-11-30
 */
@Mapper
public interface VideoMapper extends BaseMapper<Video> {

    List<VideoDto> getVideoPageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum, @Param("status") Integer status,
                                    @Param("title")String title,@Param("startTime")String startTime,@Param("endTime")String endTime);

    Integer getVideoPageCount(@Param("status") Integer status,@Param("title")String title,@Param("startTime")String startTime,@Param("endTime")String endTime);

    VideoDto getVideoInfo(@Param("id") Long id);
}
